package com.party.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 文件管理
 * </p>
 *
 * @author mds.
 * @since 2023-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UploadFiles对象", description="文件管理")
public class UploadFiles extends Model<UploadFiles> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "相关单据号")
    private String billNo;

    @ApiModelProperty(value = "单据类型编码")
    private String billTypeCode;

    @ApiModelProperty(value = "上传用户（所有者）id")
    private String userId;

    @ApiModelProperty(value = "上传人姓名")
    private String userName;

    @ApiModelProperty(value = "上传日期")
    private Date uploadDate;

    @ApiModelProperty(value = "文件原始名称")
    private String fileName;

    @ApiModelProperty(value = "文件类型（1 本地文件,2 oss文件）")
    private String urlType;

    @ApiModelProperty(value = "文件保存地址（相对地址）")
    private String url;

    @ApiModelProperty(value = "文件类型：doc、docx等")
    private String fileType;

    @ApiModelProperty(value = "文件大小")
    private String fileSize;

    @ApiModelProperty(value = "文件摘要")
    private String fileMac;

    @ApiModelProperty(value = "是否被删除：1是,other 否")
    private Long isDelete;

    @ApiModelProperty(value = "删除人id")
    private String delUserId;

    @ApiModelProperty(value = "删除日期")
    private Date delDate;

    @ApiModelProperty(value = "备用字段1")
    private Integer spareInt1;

    @ApiModelProperty(value = "备用字段2")
    private Integer spareInt2;

    @ApiModelProperty(value = "备用字段1")
    private String spareString1;

    @ApiModelProperty(value = "备用字段2")
    private String spareString2;

    @ApiModelProperty(value = "备用字段3")
    private String spareString3;

    @ApiModelProperty(value = "备用字段4")
    private String spareString4;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
